import request from '@/utils/request'

export function wareList(params) {
  return request({
    url: '/ware/ware/find',
    method: 'get',
    params
  })
}

export function listAllWare(params) {
  return request({
    url: '/ware/ware/list',
    method: 'get',
    params
  })
}

export function getWare(id) {
  return request({
    url: `/ware/ware/getById/${id}`,
    method: 'get',
  })
}

export function saveWare(data) {
  return request({
    url: '/ware/ware/save',
    method: 'post',
    data
  })
}

export function updateWare(data) {
  return request({
    url: '/ware/ware/update',
    method: 'post',
    data
  })
}

export function deleteWare(ids) {
  return request({
    url: '/ware/ware/delete',
    method: 'post',
    data: ids
  })
}

